From: Keir Fraser Date: Thu, 20 Dec 2007 10:35:22 +0000 (+0000) Subject: ioemu: Do not close slave half of a pty. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14445^2~108 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=bbe568ca78f47f3e7188154b35e53859d75f8472;p=xen.git ioemu: Do not close slave half of a pty. Signed-off-by: Keir Fraser --- diff --git a/tools/ioemu/vl.c b/tools/ioemu/vl.c index 01f4bc7ef6..bb12a3fd99 100644 --- a/tools/ioemu/vl.c +++ b/tools/ioemu/vl.c @@ -1876,8 +1876,6 @@ static CharDriverState *qemu_chr_open_pty(void) /* Set raw attributes on the pty. */ cfmakeraw(&tty); tcsetattr(slave_fd, TCSAFLUSH, &tty); - - close(slave_fd); fprintf(stderr, "char device redirected to %s\n", ptsname(master_fd));